"""autotest URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .app.views import *


urlpatterns = [
    # 测试
    path('test/', TestConnect.as_view()),
    path('admin/', admin.site.urls),
    # 登录
    path('login/', LoginManage.as_view()),
    # 用户
    path('user/', UserManage.as_view()),
    # 基础测试
    path('test_info/', Test.as_view()),
    path('query_data/', BaseCaseQueryData.as_view()),
    # 基础测试用例
    path('run_base_case/', BaseCaseExecute.as_view()),
    # 定时任务
    path('base_schedule/', BaseSchedule.as_view()),
    path('base_schedule_query_data/', BaseScheduleQueryData.as_view()),
    path('run_base_schedule/', BaseScheduleExecute.as_view()),
    # 数据更新
    path('update_base_case/', UpdateBaseCase.as_view()),
    # 回归测试用例管理
    path('case_manage/', TestCaseManage.as_view()),
    # 版本管理
    path('version_manage/', TestVersionManage.as_view()),
    # 安装包管理
    path('pack_manage/', TestPackManage.as_view()),
    # 回归测试
    path('regression/', RegressionTest.as_view()),
    path('regression_execute/', RegressionExecute.as_view()),
    # 数据更新
    path('update_regression/', UpdateRegression.as_view()),
    path('update_regression_info/', UpdateRegressionInfo.as_view()),
    # 查看日志
    path('read_log/', ReadLog.as_view()),
    # 报警
    path('police/', PoliceManage.as_view()),
    # 日志文件管理
    path('log_manage/', LogManage.as_view()),
]
